<?php
if (false){
$sSql="SELECT * FROM shop_articles where portalId=$portalId";


    $rs=$GLOBALS["conn"]->Execute($sSql);

    $unregister_vars="";
while (!$rs->EOF)  {
$i=1;
$id=$rs->fields["id"];
while ($i<13)
     {
         $sSql="INSERT INTO shop_unit values (NULL,$id,$i,100,0,NULL,$portalId);";
    $i++;
       //  echo $sSql."<br/>";

        $GLOBALS["conn"]->Execute($sSql);
     }

    $rs->MoveNext();
}}
?>